home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
tjgold.zip
/
INSTALL.003
/
DEMRD6.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-05-29
|
2KB
|
62 lines
{--------------------------------------------------------------------------}
{ Product: TechnoJock's Turbo Toolkit GOLD }
{ }
{ TTT GOLD - DEMO PROGRAM }
{ }
{ Copyright 1986-1995 TechnoJock Software, Inc. }
{ All Rights Reserved }
{ Restricted by License }
{--------------------------------------------------------------------------}
{Description: DEMRD6.PAS
Illustrates the use of the PromptRadio function
from the GoldRead unit.
}
Program DemRd6;
{$I GOLDFLAG.INC}
uses DOS,CRT, GoldStr, GoldAttr, GoldMisc,
GoldFast, GoldRead, GoldIO, GoldWin, GoldKey;
var TmpMsg, RadioStr: string;
TmpNum: byte;
procedure SetScreen;
{}
begin
Clear(WhiteOnCyan,'▒');
ClearLine(1,WhiteOnBlue);
WriteCenter(1,UseTint,' Demo of PromptRadio from GOLDREAD ');
WriteAt(1,2,BlueOnRed,replicate(80,'▀'));
WriteAT(70,2,WhiteOnBlack,'TTT Gold!');
ClearLine(25,YellowOnBlue);
end; { SetScreen }
begin
{$IFOPT D+}
HeapRecord;
{$ENDIF}
SetScreen;
MouseShow(true);
RadioStr := 'PromptStr|'+
'PromptNum|'+
'PromptReal|'+
'PromptFixedReal|'+
'PromptDate|'+
'PromptRadio';
TmpNum := PromptRadio(0,4,' Pick One',' Prompt Radio Demo ',RadioStr,6);
if ReadVars.LastAction = Escaped then
TmpMsg := 'You pressed Escape!'
else
TmpMsg := 'You selected item '+IntToStr(TmpNum);
PromptOK(' PromptRadio ',TmpMsg);
delay(500);
MouseShow(false);
Clear(LightGrayOnBlack,' ');
{$IFOPT D+}
HeapCheck;
{$ENDIF}
end.